package com.qianguo.buyer.entity;


import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.annotation.JSONField;
import com.eva.androidlibrary.api.entity.BaseBean;

/**
 * @author guxun
 * @date 16/6/28
 */
public class ShopCarNum extends BaseBean implements Parcelable {

    @JSONField(name = "num")
    private int num;
    @JSONField(name = "shopid")
    private String shopid;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getShopid() {
        return shopid;
    }

    public void setShopid(String shopid) {
        this.shopid = shopid;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.num);
        dest.writeString(this.shopid);
    }

    public ShopCarNum() {
    }

    protected ShopCarNum(Parcel in) {
        this.num = in.readInt();
        this.shopid = in.readString();
    }

    public static final Creator<ShopCarNum> CREATOR = new Creator<ShopCarNum>() {
        @Override
        public ShopCarNum createFromParcel(Parcel source) {
            return new ShopCarNum(source);
        }

        @Override
        public ShopCarNum[] newArray(int size) {
            return new ShopCarNum[size];
        }
    };
}
